package com.example.demo.service;

import com.example.demo.dto.EmployeeDTO;
import com.example.demo.entity.Employee;

import java.util.List;

/**
 * @author honeypeach
 * @date 2023/3/24 13:59
 */
public interface EmployeeService {

    Employee findEmployeeById(Long id);

    Employee getEmployeeWithLeader(EmployeeDTO employeeDTO);

    /**
     * 获取员工下属
     * @param employeeDTO
     * @return
     */
    List<Employee> listEmployees(EmployeeDTO employeeDTO);

    int delete(Long id);

    int insertEmployee(Employee employee);


}
